package com.qys.livesMall.anchor.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 直播礼物记录表
 * </p>
 *
 * @author wzy
 * @since 2023-06-21
 */
@Getter
@Setter
@TableName("h2_anchor_lives_gift_record")
@Schema(name = "AnchorLivesGiftRecord", description = "直播礼物记录表")
public class AnchorLivesGiftRecord implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "直播礼物记录id")
    @TableId(value = "id")
    private Long id;

    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "用户名")
    private String userName;

    @Schema(description = "赠与主播id")
    private Long toAnchorId;

    @Schema(description = "赠与主播名")
    private String toAnchorName;

    @Schema(description = "数量")
    private Integer quantity;

    @Schema(description = "礼物id")
    private Long giftId;

    @Schema(description = "礼物名（不超过36字符）")
    private String giftName;

    @Schema(description = "礼物图标")
    private String giftIcon;

    @Schema(description = "礼物金币单价")
    private BigDecimal giftGold;

    @Schema(description = "赠送时间")
    private LocalDateTime createTime;

    @Schema(description = "主播直播间房间号")
    private Long livesRoomId;

    @Schema(description = "主播直播场次编号")
    private Long livesSessionId;

    @Schema(description = "状态  0：未结算  1：已结算   ")
    private Byte status;
}
